﻿using System;
using System.CodeDom.Compiler;
using System.Diagnostics;
using Google.Protobuf;
using Google.Protobuf.Collections;
using Google.Protobuf.Reflection;

namespace EggLink.DanhengServer.Proto
{
	// Token: 0x020010E3 RID: 4323
	[DebuggerDisplay("{ToString(),nq}")]
	public sealed class ScenePropInfo : IMessage<ScenePropInfo>, IMessage, IEquatable<ScenePropInfo>, IDeepCloneable<ScenePropInfo>, IBufferMessage
	{
		// Token: 0x170036CA RID: 14026
		// (get) Token: 0x0600C179 RID: 49529 RVA: 0x0020BCEB File Offset: 0x00209EEB
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageParser<ScenePropInfo> Parser
		{
			get
			{
				return ScenePropInfo._parser;
			}
		}

		// Token: 0x170036CB RID: 14027
		// (get) Token: 0x0600C17A RID: 49530 RVA: 0x0020BCF2 File Offset: 0x00209EF2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public static MessageDescriptor Descriptor
		{
			get
			{
				return ScenePropInfoReflection.Descriptor.MessageTypes[0];
			}
		}

		// Token: 0x170036CC RID: 14028
		// (get) Token: 0x0600C17B RID: 49531 RVA: 0x0020BD04 File Offset: 0x00209F04
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		MessageDescriptor IMessage.Descriptor
		{
			get
			{
				return ScenePropInfo.Descriptor;
			}
		}

		// Token: 0x0600C17C RID: 49532 RVA: 0x0020BD0B File Offset: 0x00209F0B
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ScenePropInfo()
		{
		}

		// Token: 0x0600C17D RID: 49533 RVA: 0x0020BD20 File Offset: 0x00209F20
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ScenePropInfo(ScenePropInfo other) : this()
		{
			this.propState_ = other.propState_;
			this.propId_ = other.propId_;
			this.lifeTimeMs_ = other.lifeTimeMs_;
			this.createTimeMs_ = other.createTimeMs_;
			this.triggerNameList_ = other.triggerNameList_.Clone();
			this.extraInfo_ = ((other.extraInfo_ != null) ? other.extraInfo_.Clone() : null);
			this._unknownFields = UnknownFieldSet.Clone(other._unknownFields);
		}

		// Token: 0x0600C17E RID: 49534 RVA: 0x0020BDA1 File Offset: 0x00209FA1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ScenePropInfo Clone()
		{
			return new ScenePropInfo(this);
		}

		// Token: 0x170036CD RID: 14029
		// (get) Token: 0x0600C17F RID: 49535 RVA: 0x0020BDA9 File Offset: 0x00209FA9
		// (set) Token: 0x0600C180 RID: 49536 RVA: 0x0020BDB1 File Offset: 0x00209FB1
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropState
		{
			get
			{
				return this.propState_;
			}
			set
			{
				this.propState_ = value;
			}
		}

		// Token: 0x170036CE RID: 14030
		// (get) Token: 0x0600C181 RID: 49537 RVA: 0x0020BDBA File Offset: 0x00209FBA
		// (set) Token: 0x0600C182 RID: 49538 RVA: 0x0020BDC2 File Offset: 0x00209FC2
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint PropId
		{
			get
			{
				return this.propId_;
			}
			set
			{
				this.propId_ = value;
			}
		}

		// Token: 0x170036CF RID: 14031
		// (get) Token: 0x0600C183 RID: 49539 RVA: 0x0020BDCB File Offset: 0x00209FCB
		// (set) Token: 0x0600C184 RID: 49540 RVA: 0x0020BDD3 File Offset: 0x00209FD3
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public uint LifeTimeMs
		{
			get
			{
				return this.lifeTimeMs_;
			}
			set
			{
				this.lifeTimeMs_ = value;
			}
		}

		// Token: 0x170036D0 RID: 14032
		// (get) Token: 0x0600C185 RID: 49541 RVA: 0x0020BDDC File Offset: 0x00209FDC
		// (set) Token: 0x0600C186 RID: 49542 RVA: 0x0020BDE4 File Offset: 0x00209FE4
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public ulong CreateTimeMs
		{
			get
			{
				return this.createTimeMs_;
			}
			set
			{
				this.createTimeMs_ = value;
			}
		}

		// Token: 0x170036D1 RID: 14033
		// (get) Token: 0x0600C187 RID: 49543 RVA: 0x0020BDED File Offset: 0x00209FED
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public RepeatedField<string> TriggerNameList
		{
			get
			{
				return this.triggerNameList_;
			}
		}

		// Token: 0x170036D2 RID: 14034
		// (get) Token: 0x0600C188 RID: 49544 RVA: 0x0020BDF5 File Offset: 0x00209FF5
		// (set) Token: 0x0600C189 RID: 49545 RVA: 0x0020BDFD File Offset: 0x00209FFD
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public PropExtraInfo ExtraInfo
		{
			get
			{
				return this.extraInfo_;
			}
			set
			{
				this.extraInfo_ = value;
			}
		}

		// Token: 0x0600C18A RID: 49546 RVA: 0x0020BE06 File Offset: 0x0020A006
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override bool Equals(object other)
		{
			return this.Equals(other as ScenePropInfo);
		}

		// Token: 0x0600C18B RID: 49547 RVA: 0x0020BE14 File Offset: 0x0020A014
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public bool Equals(ScenePropInfo other)
		{
			return other != null && (other == this || (this.PropState == other.PropState && this.PropId == other.PropId && this.LifeTimeMs == other.LifeTimeMs && this.CreateTimeMs == other.CreateTimeMs && this.triggerNameList_.Equals(other.triggerNameList_) && object.Equals(this.ExtraInfo, other.ExtraInfo) && object.Equals(this._unknownFields, other._unknownFields)));
		}

		// Token: 0x0600C18C RID: 49548 RVA: 0x0020BEA8 File Offset: 0x0020A0A8
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override int GetHashCode()
		{
			int num = 1;
			if (this.PropState != 0U)
			{
				num ^= this.PropState.GetHashCode();
			}
			if (this.PropId != 0U)
			{
				num ^= this.PropId.GetHashCode();
			}
			if (this.LifeTimeMs != 0U)
			{
				num ^= this.LifeTimeMs.GetHashCode();
			}
			if (this.CreateTimeMs != 0UL)
			{
				num ^= this.CreateTimeMs.GetHashCode();
			}
			num ^= this.triggerNameList_.GetHashCode();
			if (this.extraInfo_ != null)
			{
				num ^= this.ExtraInfo.GetHashCode();
			}
			if (this._unknownFields != null)
			{
				num ^= this._unknownFields.GetHashCode();
			}
			return num;
		}

		// Token: 0x0600C18D RID: 49549 RVA: 0x0020BF56 File Offset: 0x0020A156
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public override string ToString()
		{
			return JsonFormatter.ToDiagnosticString(this);
		}

		// Token: 0x0600C18E RID: 49550 RVA: 0x0020BF5E File Offset: 0x0020A15E
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void WriteTo(CodedOutputStream output)
		{
			output.WriteRawMessage(this);
		}

		// Token: 0x0600C18F RID: 49551 RVA: 0x0020BF68 File Offset: 0x0020A168
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalWriteTo(ref WriteContext output)
		{
			if (this.PropId != 0U)
			{
				output.WriteRawTag(8);
				output.WriteUInt32(this.PropId);
			}
			if (this.extraInfo_ != null)
			{
				output.WriteRawTag(26);
				output.WriteMessage(this.ExtraInfo);
			}
			if (this.LifeTimeMs != 0U)
			{
				output.WriteRawTag(72);
				output.WriteUInt32(this.LifeTimeMs);
			}
			this.triggerNameList_.WriteTo(ref output, ScenePropInfo._repeated_triggerNameList_codec);
			if (this.CreateTimeMs != 0UL)
			{
				output.WriteRawTag(104);
				output.WriteUInt64(this.CreateTimeMs);
			}
			if (this.PropState != 0U)
			{
				output.WriteRawTag(120);
				output.WriteUInt32(this.PropState);
			}
			if (this._unknownFields != null)
			{
				this._unknownFields.WriteTo(ref output);
			}
		}

		// Token: 0x0600C190 RID: 49552 RVA: 0x0020C028 File Offset: 0x0020A228
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public int CalculateSize()
		{
			int num = 0;
			if (this.PropState != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropState);
			}
			if (this.PropId != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.PropId);
			}
			if (this.LifeTimeMs != 0U)
			{
				num += 1 + CodedOutputStream.ComputeUInt32Size(this.LifeTimeMs);
			}
			if (this.CreateTimeMs != 0UL)
			{
				num += 1 + CodedOutputStream.ComputeUInt64Size(this.CreateTimeMs);
			}
			num += this.triggerNameList_.CalculateSize(ScenePropInfo._repeated_triggerNameList_codec);
			if (this.extraInfo_ != null)
			{
				num += 1 + CodedOutputStream.ComputeMessageSize(this.ExtraInfo);
			}
			if (this._unknownFields != null)
			{
				num += this._unknownFields.CalculateSize();
			}
			return num;
		}

		// Token: 0x0600C191 RID: 49553 RVA: 0x0020C0DC File Offset: 0x0020A2DC
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(ScenePropInfo other)
		{
			if (other == null)
			{
				return;
			}
			if (other.PropState != 0U)
			{
				this.PropState = other.PropState;
			}
			if (other.PropId != 0U)
			{
				this.PropId = other.PropId;
			}
			if (other.LifeTimeMs != 0U)
			{
				this.LifeTimeMs = other.LifeTimeMs;
			}
			if (other.CreateTimeMs != 0UL)
			{
				this.CreateTimeMs = other.CreateTimeMs;
			}
			this.triggerNameList_.Add(other.triggerNameList_);
			if (other.extraInfo_ != null)
			{
				if (this.extraInfo_ == null)
				{
					this.ExtraInfo = new PropExtraInfo();
				}
				this.ExtraInfo.MergeFrom(other.ExtraInfo);
			}
			this._unknownFields = UnknownFieldSet.MergeFrom(this._unknownFields, other._unknownFields);
		}

		// Token: 0x0600C192 RID: 49554 RVA: 0x0020C191 File Offset: 0x0020A391
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		public void MergeFrom(CodedInputStream input)
		{
			input.ReadRawMessage(this);
		}

		// Token: 0x0600C193 RID: 49555 RVA: 0x0020C19C File Offset: 0x0020A39C
		[DebuggerNonUserCode]
		[GeneratedCode("protoc", null)]
		void IBufferMessage.InternalMergeFrom(ref ParseContext input)
		{
			uint num;
			while ((num = input.ReadTag()) != 0U)
			{
				if (num <= 72U)
				{
					if (num == 8U)
					{
						this.PropId = input.ReadUInt32();
						continue;
					}
					if (num == 26U)
					{
						if (this.extraInfo_ == null)
						{
							this.ExtraInfo = new PropExtraInfo();
						}
						input.ReadMessage(this.ExtraInfo);
						continue;
					}
					if (num == 72U)
					{
						this.LifeTimeMs = input.ReadUInt32();
						continue;
					}
				}
				else
				{
					if (num == 98U)
					{
						this.triggerNameList_.AddEntriesFrom(ref input, ScenePropInfo._repeated_triggerNameList_codec);
						continue;
					}
					if (num == 104U)
					{
						this.CreateTimeMs = input.ReadUInt64();
						continue;
					}
					if (num == 120U)
					{
						this.PropState = input.ReadUInt32();
						continue;
					}
				}
				this._unknownFields = UnknownFieldSet.MergeFieldFrom(this._unknownFields, ref input);
			}
		}

		// Token: 0x04004E2C RID: 20012
		private static readonly MessageParser<ScenePropInfo> _parser = new MessageParser<ScenePropInfo>(() => new ScenePropInfo());

		// Token: 0x04004E2D RID: 20013
		private UnknownFieldSet _unknownFields;

		// Token: 0x04004E2E RID: 20014
		public const int PropStateFieldNumber = 15;

		// Token: 0x04004E2F RID: 20015
		private uint propState_;

		// Token: 0x04004E30 RID: 20016
		public const int PropIdFieldNumber = 1;

		// Token: 0x04004E31 RID: 20017
		private uint propId_;

		// Token: 0x04004E32 RID: 20018
		public const int LifeTimeMsFieldNumber = 9;

		// Token: 0x04004E33 RID: 20019
		private uint lifeTimeMs_;

		// Token: 0x04004E34 RID: 20020
		public const int CreateTimeMsFieldNumber = 13;

		// Token: 0x04004E35 RID: 20021
		private ulong createTimeMs_;

		// Token: 0x04004E36 RID: 20022
		public const int TriggerNameListFieldNumber = 12;

		// Token: 0x04004E37 RID: 20023
		private static readonly FieldCodec<string> _repeated_triggerNameList_codec = FieldCodec.ForString(98U);

		// Token: 0x04004E38 RID: 20024
		private readonly RepeatedField<string> triggerNameList_ = new RepeatedField<string>();

		// Token: 0x04004E39 RID: 20025
		public const int ExtraInfoFieldNumber = 3;

		// Token: 0x04004E3A RID: 20026
		private PropExtraInfo extraInfo_;
	}
}
